admin/init-fs: Add a --modern switch
authorColin Walters <walters@verbum.org>
Tue, 6 Aug 2019 01:59:38 +0000 (01:59 +0000)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 8 Aug 2019 20:02:11 +0000 (20:02 +0000)
commitab73d9f5258a202d0c2a514688091be4db6622e0
treea045a2e0dd9fcb5151ff5ac0002ee1a1f622f9b5
parent729254503c3a4d6c40878e5c7f47375757b88b3b
admin/init-fs: Add a --modern switch

This skips creating the default stuff in the physical sysroot.
I don't recall why I did that to be honest; it originated with
the first commit of this file.  It might not have ever been
necessary.

In any case, it's not necessary now with Fedora CoreOS, so
prune it and let's have a clean `/`.

Keep the old behavior by default though to avoid breaking anyone.

Closes: #1894
Approved by: ajeddeloh
src/ostree/ot-admin-builtin-init-fs.c
tests/admin-test.sh